package com.sinovatio.tls.zttbg.serviceAccompany.controller;

import com.sinovatio.tls.zttbg.serviceAccompany.service.AccompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/accompany")
public class AccompanyController {

    @Autowired
    AccompanyService accompanyService;

    @GetMapping("/testData")
    public String testData(@RequestParam Integer test){
        //访问地址：http://localhost:8050/serviceAccompany/accompany/testData
//        Integer i = (Integer) map.get("test");
        return accompanyService.testData(test);
    }

}
